package com.haiertvbic.tvnow.widget;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.haiertvbic.tvnow.R;
import com.haiertvbic.tvnow.model.ProgramDetail;

public class RealTime {
	// 无网络的提示在activity中
	public ImageView noNetwork;
	// 有网无图时在图片右上角的提示
	public ImageView noPictrue;
	// 图片对象
	public ImageView image;

	// 节目名称
	public ProgramDetail pro;
	// 取节目剩余分钟数
	public TextView lastTime;
	// 进度条
	public int progress;

	// 频道号
	public int cid;

	public RealTime(Context context, int cid) {
		this.cid = cid;
		View view = View.inflate(context, R.layout.layout_channel_item, null);
		image = (ImageView) view.findViewById(R.id.image_item);
		noPictrue = (ImageView) view.findViewById(R.id.net_but_no_pictrue);
		lastTime = (TextView) view.findViewById(R.id.pro_time_tv);

		View totalView = View.inflate(context, R.layout.activity1_channellist,
				null);
		noNetwork = (ImageView) totalView.findViewById(R.id.no_network);
	}
}
